//
//  DataBaseHandler.h
//  Foodie_Talk_ProjectA
//
//  Created by Ming on 15-6-10.
//  Copyright (c) 2015年 蓝欧科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>

@class MakeDetailObject;
@interface DataBaseHandler : NSObject

{
    sqlite3 *dbPoint;
}

+ (DataBaseHandler *)shareInstance;
- (BOOL)openBD;
- (BOOL)closeBD;
- (BOOL)createFavoritesTable;
- (BOOL)insertFavorites:(MakeDetailObject *)make;
- (BOOL)deleteFavoritesWithCodeId:(NSString *)codeId;

- (NSMutableArray *)selectAll;

@end
